<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>在线用户统计</title>
    <style>
        table {
            width: 800px;
            border: 1px solid black;
            margin: 100px auto;
        }
        th {
            border: 1px solid black;
            text-align: center;
            height: 36px;
        }
        td {
            border: 1px solid black;
            text-align: center;
        }
        form {
            margin: 0;
        }
    </style>

</head>
<body>
<table>
    <caption><h2>在线用户统计</h2></caption>
    <thead>
    <tr>
        <th>编号</th>
        <th>用户</th>
    </tr>
    </thead>
    <tbody>
    <c:forEach var="user" items="${onlineList}" varStatus="sta">
        <tr>
            <td>${sta.count}</td>
            <td>${user}</td>
        </tr>
    </c:forEach>
    </tbody>
</table>
</body>
</html>
